package com.ruoyi.user.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 帮扶小组业务对象 user_help_group
 *
 * @author strongme
 * @date 2023-01-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class UserHelpGroupBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long helpGroupId;

    /**
     * 人员id
     */
    @NotNull(message = "人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 身份证
     */
    @NotBlank(message = "身份证不能为空", groups = {AddGroup.class, EditGroup.class})
    private String idno;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = {AddGroup.class, EditGroup.class})
    private String lxdh;

    /**
     * 工作单位
     */
    @NotBlank(message = "工作单位不能为空", groups = {AddGroup.class, EditGroup.class})
    private String gzdw;

    /**
     * 工作职务
     */
    @NotBlank(message = "工作职务不能为空", groups = {AddGroup.class, EditGroup.class})
    private String gzzw;

    /**
     * 所属身份
     */
    @NotBlank(message = "所属身份不能为空", groups = {AddGroup.class, EditGroup.class})
    private String sssf;

    /**
     * 联系地址
     */
    @NotBlank(message = "联系地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String lxdz;


}
